package types

type TokenType string

const (
	TokenTypeBot    TokenType = "bot"
	TokenTypeBearer TokenType = "bearer"
)

type JwtToken struct {
	Token    string    `json:"token"`
	ID       string    `json:"id"`
	Redirect string    `json:"redirect"`
	Type     TokenType `json:"type"`
}

type TokenInfo struct {
	Token     JwtToken `json:"token"`
	Resources []string `json:"resources"`
}
